package dto

import "oceanLearn/models"

/**
	封装统一的请求返回格式
 */

type UserDto struct {
	Name string `json:"name"`
	Tel string `json:"tel"`
}

func ToUserDto(user models.User) UserDto{
	return UserDto{
		Name: user.Username,
		Tel: user.Tel,
	}
}
